/* 插件组配置页面样式 */

/* 插件组配置卡片 */
.plugin-group-count-badge {
    margin-left: 8px;
}

.plugin-group-count-badge .el-badge__content {
    background-color: #52c41a;
    border-color: #52c41a;
}

/* 已添加插件组区域 */
.added-plugin-groups-section {
    margin-bottom: 24px;
}

.added-plugin-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

/* 插件组卡片样式 */
.added-plugin-group-item {
    background: white;
    border: 1px solid #e8ecf0;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.added-plugin-group-item:hover {
    border-color: #d9d9d9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.added-plugin-group-item.plugin-group-type-1 {
    border-left: 3px solid #1890ff;
}

.added-plugin-group-item.plugin-group-type-2 {
    border-left: 3px solid #fa8c16;
}

.added-plugin-group-item.plugin-group-type-3 {
    border-left: 3px solid #722ed1;
}

/* 插件组头部 */
.plugin-group-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.plugin-group-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
}

.plugin-group-item-icon.plugin-group-icon-type-1 {
    background: linear-gradient(135deg, #1890ff, #40a9ff);
}

.plugin-group-item-icon.plugin-group-icon-type-2 {
    background: linear-gradient(135deg, #fa8c16, #ffa940);
}

.plugin-group-item-icon.plugin-group-icon-type-3 {
    background: linear-gradient(135deg, #722ed1, #9254de);
}

.plugin-group-menu-btn {
    color: #8c8c8c;
    font-size: 16px;
    padding: 4px;
}

.plugin-group-menu-btn:hover {
    color: #666;
}

/* 插件组内容 */
.plugin-group-item-body {
    flex: 1;
}

.plugin-group-item-name {
    font-size: 16px;
    font-weight: 600;
    color: #262626;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.plugin-group-item-desc {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

/* 插件组元信息 */
.plugin-group-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.plugin-group-type-tag {
    font-size: 11px;
    border-radius: 2px;
}

.plugin-group-plugins-count,
.plugin-group-priority {
    font-size: 11px;
    color: #8c8c8c;
    display: flex;
    align-items: center;
    gap: 2px;
}

.plugin-group-plugins-count i,
.plugin-group-priority i {
    font-size: 10px;
}

/* 插件组内插件预览 */
.plugin-group-plugins-preview {
    background: #fafafa;
    border-radius: 4px;
    padding: 8px 10px;
}

.plugins-preview-title {
    font-size: 11px;
    color: #8c8c8c;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.plugins-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.plugin-preview-item {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 2px;
    padding: 2px 6px;
    font-size: 10px;
    color: #595959;
    font-weight: 500;
}

.plugin-preview-more {
    background: #f0f0f0;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    padding: 2px 6px;
    font-size: 10px;
    color: #8c8c8c;
    font-weight: 600;
}

/* 添加插件组按钮 */
.add-plugin-group-section {
    margin-top: 16px;
}

.add-plugin-group-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px dashed #d9d9d9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.add-plugin-group-button:hover {
    border-color: #40a9ff;
    background: #f0f9ff;
}

.add-plugin-group-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1890ff, #40a9ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
}

.add-plugin-group-text h5 {
    font-size: 16px;
    font-weight: 600;
    color: #262626;
    margin: 0 0 4px 0;
}

.add-plugin-group-text p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* 插件组类型徽章颜色 */
.plugin-group-type-tag.el-tag--primary {
    background-color: #e6f7ff;
    border-color: #91d5ff;
    color: #1890ff;
}

.plugin-group-type-tag.el-tag--warning {
    background-color: #fff7e6;
    border-color: #ffd591;
    color: #fa8c16;
}

.plugin-group-type-tag.el-tag--success {
    background-color: #f9f0ff;
    border-color: #d3adf7;
    color: #722ed1;
}

/* 下拉菜单危险项 */
.danger-item {
    color: #ff4d4f !important;
}

.danger-item:hover {
    background-color: #fff2f0 !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .added-plugin-groups-grid {
        grid-template-columns: 1fr;
    }
    
    .plugin-group-item-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .add-plugin-group-button {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}